#include "bits/stdc++.h"

using namespace std;

int main(int argc, char const *argv[]) {
  char str[100];
  int ret[100], t;
  gets(str);
  int n = 0;
  for (int i = 0; i < strlen(str); i++) {
    if ((str[i] >= '0' && str[i] <= '9')&&(str[i-1] < '0' || str[i-1] > '9')) {
      ret[n] = 0;
    }
    if (str[i] >= '0' && str[i] <= '9') {
      ret[n] = ret[n]*10 + str[i] - '0';
    }
    if ((str[i] >= '0' && str[i] <= '9')&&(str[i+1] < '0' || str[i+1] > '9')) {
      n++;
    }
  }
  sort(ret, ret+n );
  for (int i = n-1; i >= 0; i--) {
    cout<<ret[i]<<" ";
  }

  return 0;
}
